package com.mldong.modules.cms.dto;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.*;
import com.mldong.validation.Groups;
/**
 * <p>
 * 模型表
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("cms_model")
@ApiModel(value = "ModelParam对象", description = "模型表")
public class ModelParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "主键不能为空", groups = {Groups.Update.class})
    private Long id;

    @ApiModelProperty(value = "站点id")
    private Long siteId;

    @ApiModelProperty(value = "模型名称", required = true)
    @NotBlank(message = "模型名称不能为空")
    private String modelName;

    @ApiModelProperty(value = "模型表")
    private String tableName;

    @ApiModelProperty(value = "模型类型(1->内容模型|CONTENT,2->栏目模型|CATEGORY)")
    private Integer modelType;

    @ApiModelProperty(value = "栏目首页模板")
    private String categoryTemplate;

    @ApiModelProperty(value = "栏目列表页模板")
    private String listTemplate;

    @ApiModelProperty(value = "栏目详情页模板")
    private String showTemplate;


}
